package com.example.demo.struct.facade;

import lombok.Data;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
@Data
public class ComponentFacade {

    Power power = new Power();
    MotherBoard motherBoard = new MotherBoard();
    CPU cpu = new CPU();
    GPU gpu = new GPU();

    public void run() {
        power.run();
        motherBoard.run();
        cpu.run();
        gpu.run();
    }

}
